package com.zz.apk.dialog

import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentActivity
import com.zz.framework.core.base.DialogFragmentInterface

abstract class BaseDialogFragment : DialogFragment() {
    protected lateinit var dialogClickListener: DialogFragmentInterface.DialogClickListener
    override fun onDestroy() {
        super.onDestroy()
        dialog?.dismiss()
    }

    fun show(activity: FragmentActivity) {
        show(activity!!.supportFragmentManager, tag)
    }

}